<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

//不需要验证token
Route::group('api/:version',function(){
//    发送验证码
    Route::post('user/sendcode','api/:version.User/sendCode');
    //手机号登录
    Route::post('user/phonelogin','api/:version.User/phoneLogin');
    //账号密码登录
    Route::post('user/login','api/:version.User/login');
    //三方登录预留
    //获取轮播图
    Route::get('banner','api/:version.Banner/index');
    //获取菜单
    Route::get('catetype','api/:version.Catetype/index');
    //获取协议
    Route::get('agreement','api/:version.Agreement/index');
    //查看协议详情
    Route::get('agreement/:id','api/:version.Agreement/detail');

    //

});